from selenium import webdriver
from selenium.webdriver.edge.service import Service
from webdriver_manager.microsoft import EdgeChromiumDriverManager


#创建一个浏览器对象
class Driver:
    driver = ""
    def __init__(self):
        options = webdriver.EdgeOptions()
        self.driver = webdriver.Edge(service = Service(EdgeChromiumDriverManager().install()),options = options)

#设计一个单例模式
SearchDriver = Driver()